<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>变量</title>
</head>
<body>
    <script>
        console.log(parseInt(100111,2)); // 39
        console.log(parseInt(123,8)); // 83
        console.log(parseInt(0xBC,16)); // ?   //392
        console.log(parseInt("0xBC",16)); // 188
        console.log(0xBC)
        </script>
</body>
</html>